home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / exampleCode / X / XtAppInitwIcon / Makefile < prev    next >
Encoding:
Makefile  |  1994-08-02  |  668 b   |  38 lines

  1. #!smake
  2.  
  3. include $(ROOT)/usr/include/make/commondefs
  4.  
  5. TARGETS    = testicon
  6. OBJECTS    = testicon.o Initialize.o
  7.  
  8. #----
  9. # Figure out what version of the OS we're running.
  10. #
  11.  
  12. OSVERS != uname -r | awk -F- '{print $$1}' | awk -F. '{for ( i=1; i<5; i++ ) { b=0; b+=$$i; printf "%d",b} print ""}'
  13.  
  14. #----
  15. # Depending on the version of OS, use either shared libraries or
  16. # the standard ones.
  17. #
  18.  
  19. #if $(OSVERS) > 5000
  20. LLDLIBS = -lXm -lXt -lX11
  21. #else
  22. LLDLIBS = -lXm_s -lXt_s -lX11 -lPW
  23. #endif
  24.  
  25. #ifdef DEBUG
  26. LCOPTS = -g
  27. #endif
  28.  
  29.  
  30. defaults all: $(TARGETS)
  31.  
  32. include $(COMMONRULES)
  33.  
  34. testicon: $(OBJECTS)
  35.     $(CCF) -o $(TARGETS) $(OBJECTS) $(LDFLAGS)
  36.  
  37. Initialize.o: Initialize.c Initialize.h
  38.